from api import config, sshFlash
import toml

from logger import logger

# 用于测试Flash存储器的读写 -- ssh连接
# @AUTHOR -- 陈选 -- 2024-04-18
# api层sshFlash
def sshFlashMain():
    config.Config.arg = toml.load('config.toml')
    logger.Config.arg = config.Config.arg
    logger.add_handle()
    server = sshFlash.flashConnect()
    server.start()


if __name__ == '__main__':
    sshFlashMain()
